package com.alibaba.gateway;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YL
 * @date 10:44 2021/10/11
 */
@RestController
@RequestMapping("/route")
public class RouteTestController {

    @GetMapping("")
    public String hello(){
        return "8090:hello";
    }

    @GetMapping("/sayHello/{name}")
    public String sayHello(@PathVariable String name){
        return "8090:sayHello:"+name;
    }
}
